package com.hw.dao;

import com.hw.pojo.Devices;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @InterfaceName: DevicesDao
 * @Description:
 * @Author: vie0134
 * @Date: 2020-12-15 17:03
 * @Version: 1.0
 **/
@Repository
public interface DevicesDao {
    List<Devices> findAllDevices(@Param("address") String address, @Param("status") String status, @Param("areaid") Integer areaid, @Param("categoryid") Integer categoryid);
    void addDevices(Devices devices);
    void updateDevices(Devices devices);
    void deleteDevicesById(@Param("id") Integer id);
    void deleteDevicesByIds(@Param("ids") List<String> ids);
    void updateConnectionTime(@Param("uuid") String uuid, @Param("data") Date date);
    void updateOffLine(@Param("uuid") String uuid,@Param("status") String status);
    Devices getDevicesByUUId(String  uuid);
    Integer getCategoryIdByUUID(String uuid);
    Devices findDevicesById(Integer id);
}
